<?php
$code=str_replace('_','\\',str_replace('-','+',$_GET['_'])); 
$arr = explode('||',base64_decode($code));
$url="https://pcs.baidu.com/rest/2.0/pcs/file?method=download";
$url=$url."&access_token=".$arr[0]."&path=".urlencode($arr[1]);     
$timesec=time()-$arr[2];
if($timesec>60*60*24*5)die('LINK EXPIRED');
header("Location: $url");